//
//  EFANotPubPjtCCell.m
//  efairy
//
//  Created by XiangDongMBP on 2017/8/31.
//  Copyright © 2017年 East. All rights reserved.
//

#import "EFANotPubPjtCCell.h"
#import "EFAModel.h"

@implementation EFANotPubPjtCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.subTitleLabel.text = nil;
}

- (void)configViewWithPjtListItem:(EFAPjtListItem *)item {
    self.titleLabel.text = item.efairyproject_name;
    self.subTitleLabel.hidden = YES;
    self.arrowImgView.hidden = YES;
}

- (void)configViewWithNotPubModel:(EFANoticePubModel *)model {
    NSArray *array = @[@"所有项目可见", @"部分项目可见", @"部分项目不可见"];
    
    self.titleLabel.text = @"谁可以看";
    if (model.visibility_mode - 1 < array.count) {
        self.subTitleLabel.text = array[model.visibility_mode - 1];
    }
    self.arrowImgView.hidden = NO;
    self.subTitleLabel.hidden = NO;
}

@end
